package labox.innovation.gameserver.model;

/**
 * 商店出售物品信息
 * @author Frank
 *
 */
public class ShopItem {
	/** UID */
	private long uid;
	/** 类别 */
	private byte type;
	/** 类别名称 */
	private String typeValue;
	/** 物品模板ID */
	private int id;
	/** 出售价格(元宝) */
	private int price;
	/** 出售价格(积分) */
	private int priceOfPoint;
	/** 打折后价格(元宝) */
	private int discountPrice;
	/** 购买后奖励积分 */
	private int pointOfPresent;
	
	/**
	 * UID
	 * @return
	 */
	public long getUid() {
		return this.uid;
	}
	
	public void setUid(long uid) {
		this.uid = uid;
	}
	/**
	 * 类别 
	 * @return
	 */
	public byte getType() {
		return type;
	}
	
	public void setType(byte type) {
		this.type = type;
	}
	
	/**
	 * 类别名称
	 * @return
	 */
	public String getTypeValue() {
		return typeValue;
	}
	
	public void setTypeValue(String typeValue) {
		this.typeValue = typeValue;
	}
	
	/**
	 * 物品模板ID
	 * @return
	 */
	public int getId() {
		return id;
	}
	
	public void setId(int id) {
		this.id = id;
	}
	
	/**
	 * 出售价格(元宝)
	 * @return
	 */
	public int getPrice() {
		return price;
	}
	
	public void setPrice(int price) {
		this.price = price;
	}
	
	/**
	 * 出售价格(积分)
	 * @return
	 */
	public int getPriceOfPoint() {
		return priceOfPoint;
	}
	
	public void setPriceOfPoint(int priceOfPoint) {
		this.priceOfPoint = priceOfPoint;
	}
	
	/**
	 * 打折后价格(元宝)
	 * @return
	 */
	public int getDiscountPrice() {
		return discountPrice;
	}
	
	public void setDiscountPrice(int discountPrice) {
		this.discountPrice = discountPrice;
	}
	
	/**
	 * 购买后奖励积分
	 * @return
	 */
	public int getPointOfPresent() {
		return pointOfPresent;
	}
	
	public void setPointOfPresent(int pointOfPresent) {
		this.pointOfPresent = pointOfPresent;
	}
	
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("【类别】: ").append(type).append("; 【类别名称】: ").append(typeValue);
		sb.append("; 【物品模板ID】: ").append(id).append("; 【出售价格(元宝)】: ").append(price);
		sb.append("; 【出售价格(积分)】: ").append(priceOfPoint).append("; 【打折后价格(元宝)】: ").append(discountPrice);
		sb.append("; 【购买后奖励积分】: ").append(pointOfPresent).append("");
		return sb.toString();
	}
}
